﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[RequireComponent(typeof(Camera))]
public class SetCameraDepthTextureMode : MonoBehaviour {

    Camera thisCamera;

    private void Start()
    {
        thisCamera = GetComponent<Camera>();
    }

    private void OnPreRender()
    {
        thisCamera.depthTextureMode = DepthTextureMode.None;
    }
}
